package com.zkingsoft.actions;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import com.zkingsoft.model.Users;

public abstract class BaseController {
	
	/**
	 * @获取登录员工登录对象
	 */
	public Users getMe() {
		return (Users) ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest().getSession().getAttribute("user");
	
	}

}
